package cn.iocoder.yudao.module.wms.controller.admin.vehicle.vo;

import cn.iocoder.yudao.module.wms.enums.RegConstants;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - 车辆资料新增/修改 Request VO")
@Data
public class VehicleSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "20263")
    private String id;

    @Pattern(regexp = RegConstants.VEHICLE_NUMBER_REG, message = "车牌号码格式不正确")
    @NotBlank(message = "车牌号码不能为空")
    @Schema(description = "车牌号码")
    private String number;

    @NotBlank(message = "车辆类型不能为空")
    @Schema(description = "车辆类型", example = "2")
    private String type;

}